package com.edushare.common.vo;

import com.edushare.common.vo.auto._ConfigProperties;

public class ConfigProperties extends _ConfigProperties {

	private static final long serialVersionUID = -5542938459494181845L;

	public static final int SYSTEM_BACKUP_STATUS_OK						= 10;
	public static final int SYSTEM_BACKUP_STATUS_PROCESSING_INIT		= 20;
	public static final int SYSTEM_BACKUP_STATUS_PROCESSING_DB			= 30;
	public static final int SYSTEM_BACKUP_STATUS_PROCESSING_MEDIA		= 40;
	public static final int SYSTEM_BACKUP_STATUS_PROCESSING_CONFIG		= 50;
	public static final int SYSTEM_BACKUP_STATUS_FAILED					= 60;
	
	public static String getStringValueForStatus(int status){
		switch(status){
			case SYSTEM_BACKUP_STATUS_OK:
				return "Previous backup was successful. Ready for new backup.";
			case SYSTEM_BACKUP_STATUS_PROCESSING_DB:
				return "Dumping and splitting database files";
			case SYSTEM_BACKUP_STATUS_PROCESSING_MEDIA:
				return "Compressing and splittinh media files";
			case SYSTEM_BACKUP_STATUS_PROCESSING_CONFIG:
				return "Writing configuration file for this backup.";
			case SYSTEM_BACKUP_STATUS_FAILED:
				return "Back-up failed. Please check if there is enough disk space on the server.";
			default:
				return "";
		}
	}

}
